package com.jtny.nytb.dataparam.dao;

import com.jtny.component.core.mapper.CoreMapper;
import com.jtny.nytb.dataparam.bo.ItemBO;
import com.jtny.nytb.dataparam.domain.ConfigDataParamManagementDO;
import com.jtny.nytb.dataparam.domain.DevicePageQueryDO;
import com.jtny.nytb.config.datafactor.dto.DeviceDataParamQueryDTO;
import com.jtny.nytb.config.datafactor.dto.PageDeviceDataParamQueryDTO;
import com.jtny.nytb.dataparam.vo.DevicePageQueryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 数据参量管理配置DAO接口
 * @package com.jtny.nytb.config.datafactor.dao
 * @fileName ConfigDataParamManagementDAO.java
 * @author 智慧能源中心 - 刘琦
 * @createTime 2023年9月05日 17:03
 * @Copyright© 2023 jtny
 * 江投能源技术研究院 版权所有
 */

@Mapper
public interface ConfigDataParamManagementDAO extends CoreMapper<ConfigDataParamManagementDO> {

    List<Long> selectDeviceParams(@Param("devicePage") DevicePageQueryVO devicePageQueryVO);

    List<DevicePageQueryDO> queryDataByParamIds(@Param("paramIds") List<Long> paramIds);

    List<DeviceDataParamQueryDTO> getDeviceAndDataParams(@Param("devicePage") PageDeviceDataParamQueryDTO devicePage);

    void updateDataParamName(@Param("item") ItemBO item);
}
